#set terminal png size 1024,768
#set output 'result.png'

set terminal pdf
set output 'result.pdf'

#set logscale x
#set logscale y
#set xrange [1e-6:1000]
#set yrange [1e-6:1000]
set grid
#set key top right

set title '1 Iteration'
set xlabel 'X'
set ylabel 'Y'
file = './data/log1.txt'
plot \
file using 1:2 title "" with linespoints, \
file using 3:4 title "" with linespoints, \
file using 5:6 title "" with linespoints, \
file using 7:8 title "" with linespoints, \
file using 9:10 title "" with linespoints

set title '5 Iterations'
set xlabel 'X'
set ylabel 'Y'
file = './data/log5.txt'
plot \
file using 1:2 title "" with linespoints, \
file using 3:4 title "" with linespoints, \
file using 5:6 title "" with linespoints, \
file using 7:8 title "" with linespoints, \
file using 9:10 title "" with linespoints

set title '10 Iterations'
set xlabel 'X'
set ylabel 'Y'
file = './data/log10.txt'
plot \
file using 1:2 title "" with linespoints, \
file using 3:4 title "" with linespoints, \
file using 5:6 title "" with linespoints, \
file using 7:8 title "" with linespoints, \
file using 9:10 title "" with linespoints

set title '25 Iterations'
set xlabel 'X'
set ylabel 'Y'
file = './data/log25.txt'
plot \
file using 1:2 title "" with linespoints, \
file using 3:4 title "" with linespoints, \
file using 5:6 title "" with linespoints, \
file using 7:8 title "" with linespoints, \
file using 9:10 title "" with linespoints

set title '50 Iterations'
set xlabel 'X'
set ylabel 'Y'
file = './data/log50.txt'
plot \
file using 1:2 title "" with linespoints, \
file using 3:4 title "" with linespoints, \
file using 5:6 title "" with linespoints, \
file using 7:8 title "" with linespoints, \
file using 9:10 title "" with linespoints

set title '100 Iterations'
set xlabel 'X'
set ylabel 'Y'
file = './data/log100.txt'
plot \
file using 1:2 title "" with linespoints, \
file using 3:4 title "" with linespoints, \
file using 5:6 title "" with linespoints, \
file using 7:8 title "" with linespoints, \
file using 9:10 title "" with linespoints

